<?php 
/**
 * 操作
 * 
 * @version        $Id: search.php 1 8:38 2010年7月9日Z tianya $
 * @package        DedeCMS.Member
 * @copyright      Copyright (c) 2007 - 2010, DesDev, Inc.
 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC."/datalistcp.class.php");
CheckRank(0,0);
$menutype = 'mydede';
$menutype_son = 'extract_op';
setcookie("ENV_GOBACK_URL",GetCurUrl(),time()+3600,"/");
if(!isset($dopost)) $dopost = '';

/**
 *  获取状态
 *
 * @param     string  $sta  状态ID
 * @return    string
 */
$row = $dsql->GetOne("SELECT certification FROM `#@__member` WHERE mid='{$cfg_ml->M_ID}'");
$rz = $row['certification'];
if($rz == 0){
	$rzmsg = "未实名认证";
}else if($rz == 1){
	$rzmsg = "实名认证（待审核）";
}else if($rz == 3){
	$rzmsg = "实名认证";
}
function GetSta($sta){
    if($sta==0) return '<font color=red>处理中</font>';
    else if($sta==1) return '被拒绝';
    else return '已支付';
}

if($dopost=='')
{
    $sql = "SELECT * FROM `#@__member_operation` WHERE mid='".$cfg_ml->M_ID."' AND buyid='tixian' ORDER BY aid DESC";
    $dlist = new DataListCP();
    $dlist->pageSize = 20;
    $dlist->SetTemplate(DEDEMEMBER."/templets/extract_op.htm");    
    $dlist->SetSource($sql);
    $dlist->Display(); 
}